package com.stnet.service.enterprice.chinamobile;

import java.util.List;

import com.modules.commons.Pager;
import com.stnet.entity.OnlineRecharge;
import com.stnet.entity.Users;

/**
 * @author Messcat
 * @version 1.1
 *
 */
public interface OnlineRechargeManagerDao
{
	public abstract Pager findOnlineRecharge(int i, int j, String s);

    public abstract OnlineRecharge getOnlineRecharge(Long id);
    
    public abstract OnlineRecharge getByOuttradeid(String outtradeid);

    public abstract void addOnlineRecharge(OnlineRecharge onlineRecharge);

    public abstract void updateOnlineRecharge(OnlineRecharge onlineRecharge);

    public abstract void deleteOnlineRecharge(Long id);
    
    public abstract List findOnlineRechargeByAgent( Long agent);
    
    public Pager getListByAgent(int pageSize, int pageNo, Long agent);
    
    public abstract int onlineRecharge(String mobile, int value, int type, Users users);
}